Skip to main content

revBrowserRemoveJavaScriptHandler

Type​

command

Summary​

Removes the named handler from the 'LiveCode' object within the current JavaScript context of the browser.

Syntax​

revBrowserRemoveJavaScriptHandler <instanceID>, <handlerName>

Description​

The revBrowserRemoveJavaScriptHandler removes the named handler from the 'liveCode' object within the current JavaScript context of the browser.

Calling the revBrowserRemoveJavaScriptHandler function will remove the corresponding function from the global JavaScript 'LiveCode' object. JavaScript within the browser will no longer be able to call the named handler.

The handler must have previously been registered with the revBrowserAddJavaScriptHandler command.

Parameters​

NameTypeDescription

instanceID

the ID of the browser instance returned by the revOpenBrowser function.

handlerName

the name of a LiveCode handler previously added with revBrowserAddJavaScriptHandler.

Examples​

revBrowserRemoveJavaScriptHandler tBrowserID, "myLiveCodeHandler"

command: revBrowserStop, revBrowserPrint, revBrowserSet, revBrowserMakeTextBigger, revBrowserNavigate, revBrowserAddJavaScriptHandler, revBrowserClose

function: revBrowserOpenCef

message: browserOver, browserNewInstance, browserNewUrlWindow, browserDownloadRequest, browserNavigateCompleteFrame

Compatibility and Support​

Introduced

LiveCode 6.7

OS

mac

windows

Platforms

desktop

Thank you for your feedback!

Was this page helpful?